package com.flying.invest.stat.model;

import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="v_wave_strategy_month_stat",title="阶段策略统计", table="v_wave_strategy_month_stat", primaryKeys={"user_id","month","type_id"})
public class WaveStrategyMonthStat extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "v_wave_strategy_month_stat";
	
	public final static String USER_ID = "user_id";
	public final static String TYPE_ID = "type_id";
	public final static String MONTH = "month";
	public final static String BUY_AMOUNT = "buy_amount";
	public final static String BUY_COUNT = "buy_count";
	public final static String SELL_AMOUNT = "sell_amount";
	public final static String SELL_COUNT = "sell_count";
	public final static String PROFIT = "profit";
	
	@Param(value=USER_ID, required=true, desc="所属用户" )
	private Long userId;
	
	@Param(value=TYPE_ID, required=true, desc="策略类型" )
	private Long typeId;
	
	@Param(value=MONTH, required=true, desc="月份" )
	private String month;
	
	@Param(value=BUY_AMOUNT, required=true, desc="买入金额" )
	private Double buyAmount;
	
	@Param(value=BUY_COUNT, required=false, desc="买入笔数" )
	private Double buyCount;
	
	@Param(value=SELL_AMOUNT, required=false, desc="卖出金额" )
	private Double sellAmount;
	
	@Param(value=SELL_COUNT, required=false, desc="卖出笔数" )
	private Double sellCount;
	
	@Param(value=PROFIT, required=false, desc="利差" )
	private Double profit;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public Double getBuyAmount() {
		return buyAmount;
	}

	public void setBuyAmount(Double buyAmount) {
		this.buyAmount = buyAmount;
	}

	public Double getBuyCount() {
		return buyCount;
	}

	public void setBuyCount(Double buyCount) {
		this.buyCount = buyCount;
	}

	public Double getSellAmount() {
		return sellAmount;
	}

	public void setSellAmount(Double sellAmount) {
		this.sellAmount = sellAmount;
	}

	public Double getSellCount() {
		return sellCount;
	}

	public void setSellCount(Double sellCount) {
		this.sellCount = sellCount;
	}

	public Double getProfit() {
		return profit;
	}

	public void setProfit(Double profit) {
		this.profit = profit;
	}
	
	
}